<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>直辖处业绩报表</title>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript" language="Javascript"
			src="../../../script/FusionCharts/FusionCharts.js">
</script>
		<script type="text/javascript">
$(function() {
	fixTable.FixTable("mytable");
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
})

function doQuery() {
	document.form1.action = "${path}/report/base/index/pastlocateperformance?dotype=doquery";
	document.form1.submit();

}
function doExport(type) {
	document.form1.action = "${path}/report/base/index/pastlocateperformance?dotype="
			+ type;
	document.form1.submit();
}
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						直辖处业绩报表
						<div class="tools-btn" style="width: 250px;">
							<a href="javascript:" onclick="doExport('pdf')"><span>
									<img src="${path}/statics/images/dcpdf.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出PDF</span> </a>
							<a href="javascript:" onclick="doExport('excel')"><span>
									<img src="${path}/statics/images/dcexcel.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />导出EXCEL</span> </a>
							<a href="javascript:" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>
				<div class="search">
					<table width="100%" border="0" cellspacing="0" cellpadding="10"
						class="table_form">
						<tbody>
							<tr>
								<td align="right">
									年月：
								</td>
								<td>
									<input type="text" readonly="readonly" id="reportdate"
										name="reportdate" value="${reportdate}" class="input-txt"
										onclick="WdatePicker({dateFmt:'yyyy年MM月'})" />
								</td>
								<td align="right">
									<input name="Input" type="button" class="linkbtn2" value="查  询"
										onclick="doQuery()" />
								</td>
						</tbody>
					</table>
				</div>
				<!-- 查詢列表 -->
				<div id="mylist" style="height: 365px;" class="dlist">
					<table id="mytable" cellpadding="0" cellspacing="0"
						class="dg_borderstyle  trStyleTable"
						style="margin-top: 15px; text-align: center;">
						<tr>
							<th rowspan="2" align="left"
								style="min-width: 120px; max-width: 120px;" name="fixcol">
									序号
							</th>
							<th rowspan="2" align="left"
								style="min-width: 120px; max-width: 120px;" name="fixcol">
								市机构
							</th>
							<th rowspan="2" align="left"
								style="min-width: 120px; max-width: 120px;" name="fixcol">
								营业部
							</th>
							<th rowspan="2" align="left"
								style="min-width: 80px; max-width:80px;">
								团队长
							</th>
							<th rowspan="2" align="left"
								style="min-width: 80px; max-width: 80px;">
								职级
							</th>

							<th colspan="2">
								主管个人业绩（当月）
							</th>
							<th colspan="5">
								团队业绩情况
							</th>
							<th colspan="6">
								团队人力情况
							</th>

						</tr>
						<tr>
							<th>
								受理保费
							</th>
							<th>
								综拓保费
							</th>
							<th style="width: 40px;">
								本月受理保费
							</th>
							<th style="width: 40px;">
								本月回单保费
							</th>
							<th style="width: 40px;">
								本月综拓保费
							</th>
							<th style="width: 40px;">
								年度回单保费
							</th>
							<th style="width: 40px;">
								年度综拓保费
							</th>
							<th>
								总人力
							</th>
							<th>
								本月新增人力
							</th>
							<th>
								预收破零人力
							</th>
							<th>
								承保破零人力
							</th>
							<th>
								预收破零占比
							</th>
							<th>
								承保破零占比
							</th>
						</tr>

						<c:forEach items="${pagination}" var="list" varStatus="var">
							<tr>
								<td nowrap="nowrap">
									${var.index+1}
								</td>
								<td>
									${list.CBRANCHNAME}
								</td>
								<td>
									${list.PBRANCHNAME}
								</td>
								<td>
									${list.AGENTNAME}
								</td>
								<td>
									${list.AGENTLEVLE}
								</td>
								<td>
									${list.VALUEACCEPT}
								</td>
								<td>
									${list.VALUEASCRIPT}
								</td>
								<td>
									${list.TEAMMONTHPACCEPT}
								</td>
								<td>
									${list.TEAMMONTHPROST}
								</td>
								<td>
									${list.TEAMMONTHASCRIPT}
								</td>
								<td>
									${list.TEAMYEARPROST}
								</td>
								<td>
									${list.TEAMYEARASCRIPT}
								</td>
								<td>
									${list.TEAMHUMAN}
								</td>
								<td>
									${list.TEAMNEWMAN}
								</td>
								<td>
									${list.TEAMACCEPTBREAKZERO}
								</td>
								<td>
									${list.TEAMAPPROVEBREAKZERO}
								</td>
								<td>
									${list.TEAMACCEPTBREAKZEROPRESENT}
								</td>
								<td>
									${list.TEAMAPPROVEBREAKZEROPRESENT}
								</td>
							</tr>
						</c:forEach>
					</table>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>

			</div>
 

		</form>

		<sfa:mainFooter></sfa:mainFooter>
		</div>
	</body>
</html>